package com.excellent.item.mapper;

import com.excellent.item.pojo.SpecGroup;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author Xxacker
 */
public interface SpecGroupMapper extends Mapper<SpecGroup> {
    /**
     * 修改规格参数组
     * */
    @Update("UPDATE TB_SPEC_GROUP SET name = #{name} WHERE id = #{id}")
    int updateSpecGroup(SpecGroup specGroup);

    /** 删除中间表数据 */
    @Delete("delete from TB_SPEC_GROUP where ID = #{id}")
    int deleteById( @Param("id") Long id);
}
